<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<link href="./images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="./images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="./images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
	<title>CRM后台管理</title>
</head>

<body class="body_ifm">
	<div class="infoboxp">
	
		<div class="admin_new_tip">
			<a href="javascript:;" class="admin_new_tip_close"></a>
			<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
			<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
			<div class="admin_new_tip_list_cont">
				<div class="admin_new_tip_list">该页面展示了业务员提交订单详情。您可以进行修改、确认订单。</div>
				{yun:}if $orderInfo.order_state==1{/yun}
				<div class="admin_new_tip_list">
					<font color='red'>确认收款后系统将会自动为会员开通服务，此操作无法撤销</font>
				</div>
				{yun:}/if{/yun}
			</div>
		</div>

		<div class="tag_box mt10">
			
			<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
			<form name="myform" target="supportiframe" action="index.php?m=crm_dealsp&c=setOrder" method="post" id="myform" onSubmit="return check_form();">
    			
    			<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
    
				<table width="100%" class="table_form"> 
				
		          	<tr>
		              	<td colspan="2" bgcolor="#f0f6fb"><div class="admin_bold">订单详情</div></td>
		            </tr>
					
					<tr>
						<th width="120">订单号：</th>
						<td><div class="yun_admin_divh">{yun:}$orderInfo.order_id{/yun}</div></td>
					</tr>
					
					<tr >
						<th>订单类型：</th>
						<td> 
							<div class="yun_admin_divh">{yun:}$orderInfo.type_n{/yun}：{yun:}$ratingName{/yun}</div>
						</td>
					</tr>
					
					<tr>
						<th>付款状态：</th>
						<td>
							<div class="yun_admin_divh">
								{yun:}if $orderInfo.order_state == 1{/yun}
									<font color="#f60">待付款</font>
								{yun:}else if $orderInfo.order_state == 2{/yun}
									<font color="#009900">已完成</font>
								{yun:}/if{/yun}
							</div>
						</td>
					</tr>
					
					<tr>
						<th>企业名称：</th>
						<td><div class="yun_admin_divh">{yun:}$orderInfo.comname{/yun}</div></td>
					</tr>
					<tr>
						<th>用户名：</th>
						<td><div class="yun_admin_divh">{yun:}if $orderInfo.type==3||$orderInfo.order_type=='bank'{/yun}{yun:}$orderInfo.comname{/yun}+{yun:}/if{/yun}{yun:}$orderInfo.username{/yun}</div></td>
					</tr>
					
					<tr class="admin_table_trbg">
						<th>订单金额：</th>
						<td>
							<div class="yun_admin_divh">
								{yun:}if $orderInfo.order_state==1{/yun}
									<input type="text" name="order_price" id="order_price" class="input-text" size="10" value="{yun:}$orderInfo.order_price{/yun}" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')">
								{yun:}else{/yun}
									<input name='order_price' value='{yun:}$orderInfo.order_price{/yun}' type='hidden'/>{yun:}$orderInfo.order_price{/yun}
								{yun:}/if{/yun}
								元
							</div>
						</td>
					</tr>
					
					<tr class="admin_table_trbg">
						<th>支付方式：</th>
						<td>
							<div class="yun_admin_divh">
							{yun:}if $orderInfo.order_type=='wxpay'{/yun}微信支付
							{yun:}else if $orderInfo.order_type=='alipay'{/yun}支付宝支付
							{yun:}/if{/yun}
							</div>
						</td>
					</tr>
					
					<tr class="admin_table_trbg">
						<th>业务员：</th>
						<td><div class="yun_admin_divh">{yun:}$aname{/yun}</div></td>
					</tr>
					
					<tr class="admin_table_trbg">
						<th>申请时间：</th>
						<td><div class="yun_admin_divh">{yun:}$orderInfo.order_time|date_format:"%Y-%m-%d %H:%M:%S"{/yun}</div></td>
					</tr>
					 
					<tr class="admin_table_trbg">
						<th>备注：</th>
						<td height="36">
					   		{yun:}if $orderInfo.order_state==1{/yun}<textarea name="order_remark" id="order_remark" rows="3" cols="50" class="text" style="width:300px;height:80px;border:1px solid #eee">{yun:}$orderInfo.order_remark{/yun}</textarea>{yun:}else{/yun}{yun:}$orderInfo.order_remark{/yun}<input name='order_remark' value='{yun:}$orderInfo.order_remark{/yun}' type='hidden'/>{yun:}/if{/yun}
						</td>
					</tr>
					
					<tr>
						<th>&nbsp;</th>
						<td > 
							<input name="id" type="hidden" value="{yun:}$orderInfo.id{/yun}">
							
							{yun:}if $orderInfo.order_state==1{/yun}<input class="admin_button" name="hotup" type="submit" value="修改" id="dosubmit">{yun:}/if{/yun} 
							
							<input class="admin_button" name="" type="button" value="返回" onclick="javascript:history.go(-1);">
			                
			                {yun:}if $orderInfo.order_state==1{/yun}
			                	<input class="admin_button" type="button" value="确认收款" onclick="layer_del('确认收款系统将自动为该用户开通相应服务，是否确认？', 'index.php?m=crm_dealsp&c=setpay&id={yun:}$orderInfo.id{/yun}');">
			                {yun:}/if{/yun}
						</td>
						
					</tr> 
				</table>
			</form>
		</div>
	</div>
	<script>
		function check_form(){
			var order_price=$("#order_price").val();
			if(order_price==''){ 
				parent.layer.msg('待付金额不能为空！', 2, 8);
				return false;
			}
		} 
	</script>
</body>
</html>